import request from '@/utils/request'


export function getNewsList(newsType, pageNo, pageSize = 10) {
  return request({
    url: `/news/list`,
    method: 'get',
    params: {
      pageNo,
      pageSize,
      newsType
    }
  })
}


export function newsQuery (id) {
  return request({
    url: '/news/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export function getNewsRelationList(newsType, pageNo, pageSize = 10) {
  return request({
    url: `/news/relation`,
    method: 'get',
    params: {
      pageNo,
      pageSize,
      newsType
    }
  })
}
